Cut the tofu into bite-sized pieces.
Remove excess moisture from the tofu using a paper towel.
Heat cooking oil in a pan and pan-fry the tofu until golden brown on both sides.
Mix together soy sauce, water, sugar, minced garlic, sesame oil, and pepper to make the sauce.
Pour the sauce over the fried tofu and simmer on low heat.
When the sauce thickens, sprinkle chopped green onions on top to finish.