Guinea pigs need a diet high in fiber to keep their teeth healthy. They should have access to hay at all times, as it helps wear down their teeth naturally. Additionally, providing them with chew toys or wooden blocks can also help keep their teeth at a proper length. Regular check-ups with a veterinarian who is knowledgeable about guinea pig dental care is also important to ensure their teeth are healthy.