To prepare the Ultimate Baked Beans recipe, you'll first need to gather your ingredients. In a large skillet, heat the olive oil over medium-high heat. Add the onion and cook until softened, about 5 minutes. Stir in the garlic and season with salt and pepper. Cook, stirring frequently, until the onions are lightly browned, 3 to 4 minutes more. Remove the skillet from the heat and add the beans. Simmer, uncovered, for 1 to 2 hours, or until heated through. Serve with sour cream and chopped parsley.