What do I do when my guinea pig has blood and thick mucous coming out of penis?

What I would do is take the guinea pig to the nearest Vet or Animal Doctor as any bleeding is serious