In a large pan, saute garlic and onion with seasonings. Add rice, beans and ham; cook over medium heat. Stir in approximately 1/4 cup water or liquid from beans. Cook until heated through.