Preheat oven to 400 degrees. On a large rimmed baking sheet, toss asparagus with oil and garlic; season with salt and pepper. Roast until tender and browned in spots, 15 to 18 minutes. Serve warm or at room temperature.