In a big skillet, heat olive oil on medium high heat. Add the onions and cook them for 3 minutes, until they start to turn clear. Add the garlic and cook for 30 seconds.
Add the beans, broth, and the seasonings. On low heat, cook for 7-8 minutes while stirring.
Remove from heat and add the lime juice. Mash the beans with a spatula until the beans are the consistency you want.
Serve the beans with the rice.