Cook beans until almost done, keep covered with water while cooking. Add ham hocks, onion, garlic, salt and pepper. Cook until done. Serve with corn bread or tortillas.