In a wok or skillet, heat oil on medium-high.
Add the whole red chili, and let it change color a bit, about 30 seconds. The fumes are pretty strong, so try not to inhale too deeply!! Add the asafetida (optional) and stir.
Add the chopped ginger, wait 30 seconds, stir, and then add the turmeric, chili, and cumin powders.
Stir and add the potatoes. Sauté for 2 minutes before adding the freshly cut or frozen beans.
Stir well until the beans and potatoes are nicely coated with the masala.
Add 1/2 cup of water and the salt.
Cook on medium-low for about 15 minutes till potatoes and beans are tender.
Transfer beans to a serving dish and sprinkle with garam masala or paprika if you prefer.
Serve with any Indian meal. You can also use it in a wrap with roti, paratha, or any flatbread.