Put tofu cubes, oil, salt, pepper, and garlic powder in a bowl. Gently toss until all the cubes get evenly coated with the seasonings and oil.
Spread tofu cubes on a baking tray lined with a baking sheet, Bake in a preheated oven at 200°C (or, 400℉) for 12-15 minutes or until tofu starts turning golden brown.
Meanwhile, heat the oil in a pan. Add chopped garlic and saute until it starts turning brown. Add chopped red chili and the white part of spring onion. Saute for a few seconds.
Next, add sliced onion and cook until it turns translucent.
Add chopped tomatoes, salt, sugar, soy sauce, and pepper. Mix and cook on medium heat for around 7-8 minutes or until the tomatoes turn mushy. You may cover the pan to fasten this step.
Pour a cup of water into the pan and cook for another 3-4 minutes on medium-high heat.
Finally add baked tofu cubes, green onions, and cilantro. Mix and cook for about a minute.
Cover the pan and turn off the heat. Don't remove the lid for 5 minutes.
Serve hot with steamed Jasmine or sticky rice.