Put the beans with enough water and the bay leaf in the pressure cooker for 30 minutes (after this time, if its not ready, leave it cooking and check every 10 min)
Prepare a sofrito by sautéing the onions, garlic, and green pepper in enough hot oil until all vegetables are cooked, I like to add a little bit of salt.
Once the beans are soft but firm, wash the rice and pour it in a cacerola
add for 1 cup of rice 2 of the beans broth; now add the beans, I usually add the same amount of beans as rice. Cover and let it cook over high heat until it boils and then lower the heat and let it cook until the water is completely absorbed.
When this happens leave covered for 7 more minutes. It is about 21 minutes in total.
Uncover it, add the sofrito, the cumin, stir and cover it again until you are going to serve it.