Preheat the oven to 400°F
Remove the husks and silk from the corn
Rinse the corn and pat it dry
Brush the corn with butter or oil
Season with salt and pepper if desired
Wrap each ear in foil or place directly on a baking sheet
Bake for 20 to 25 minutes, turning once halfway through
Remove from the oven and let cool slightly
Serve warm
