Cut the tofu into bite-sized pieces.
Finely chop the onion and garlic.
Heat olive oil in a pan and sauté the onion and garlic.
Add the tomato sauce and bring to a simmer.
Add the tofu and make sure it is submerged in the sauce.
Crack the eggs and place them on top of the tofu.
Cover and cook until the eggs are set.
Season with salt and pepper to taste.