Preheat oven to 375°F. Cut off top of garlic heads. Drizzle olive oil into a small baking dish. Place garlic in baking dish. Drizzle garlic with oil and sprinkle with salt and pepper. Cover baking dish with foil and roast until tender, 40 minutes.. Cool slightly and squeeze out garlic cloves.