1. Preheat oven to 425 degrees Fahrenheit.
2. Place string beans in a 9×13 pan (or the size larger). Generously sprinkle with salt and black pepper. Mix garlic and olive oil and pour over string beans. Toss to coat.
3. Bake in preheated oven for 10 to 20 minutes, depending on the thickness of string beans and how soft you like them. (When I use French string beans, I take them out after 10 minutes; when I use the fatter ones, I leave them in for closer to 20 minutes.) Remove from oven and toss again before serving.