You can either bake or sauté the tofu.
Preheat the oven to 400°F (200°C) Bake for 15 minutes on one side, then flip and continue baking for another 5 minutes or until golden brown.
If sautéing, heat oil in a skillet, add tofu and cook both sides over medium-high heat until golden brown.
Mix sugar, soy sauce, gochujang, and vegetable stock or water in a bowl. Set aside.
Add 1 tablespoon of oil to a skillet and heat it, and cook garlic and onion over medium-high heat until golden brown, while stirring often.
Add cooked tofu and sauce, stir, and cook for about 5 minutes.
Serve your spicy tofu immediately, or store leftovers in the fridge, store it in an airtight container for up to 1 week. Reheat in the microwave or stovetop over medium heat, adding water or vegetable stock if needed.