To ease mealtime preparation, cook the corn and beans early in the day, toss them with olive oil and smashed garlic, and keep them in the refrigerator. To remove corn kernels from the cob, hold the ear upright on its flat end on a cutting board; with a sharp knife, cut along the length of the cob to remove the kernels, turning the cob as you go.