Boil the pasta in boiling water.
Finely chop garlic and onion, and sauté them in olive oil in a pan.
Add tomato sauce to the pan and bring to a simmer.
Mix the cooked pasta into the sauce.
Season with salt and pepper to taste.
Finish with grated Parmesan cheese on top.