In a saucepan, soften the onion and garlic in the oil. Season with salt and pepper. Add the rice and stir to coat with the oil. Add the tomatoes and cook, stirring constantly, for about 2 minutes. Add the chicken broth, about 250 ml (1 cup) at a time, stirring frequently until the liquid is completely absorbed before adding more broth.