Next time you're thinking of boiling water for corn on the cob, consider this flavorful oven method instead. Ears of corn are brushed with a garlicky herb butter, then wrapped in foil and roasted until tender and just starting to brown. The butter flavors the corn as it roasts, and a spoonful spread on each ear just before serving delivers a little extra richness.
For corn on the cob with a kick, consider adding a pinch of chili powder or ground cayenne to the butter mixture.
Summary from source