Heat oil in a large skillet over medium heat, add garlic and chopped onions and cook until fragrant, about 2 minutes. Add tofu mixture and cook, stirring occasionally, until most of the moisture has evaporated, about 10-12 minutes. Add beans, stir well and cook until heated through, about 2 minutes.