Preheat your oven to 350°F. Cook the spaghetti according to the package directions, then drain and set aside.
Heat a large skillet over medium-high heat. Add the ground turkey or beef and cook until browned, breaking it apart as it cooks. Add the minced garlic and cook for another minute.
Stir in the pasta sauce and ricotta cheese. Bring the mixture to a gentle simmer, then remove it from the heat.
Add the cooked spaghetti to a large baking dish. Pour the meat sauce over the spaghetti and toss until everything is evenly combined.
Sprinkle the Parmesan cheese evenly over the top, followed by the mozzarella cheese.
Bake for 20 to 30 minutes, or until the cheese is completely melted and beginning to brown. Let the baked spaghetti rest for a few minutes before serving.