How long has it been there? It definately sounds like prolapse could be a possibility. I'd start giving him some sugar/water soaks and maybe a tiny bit of Preparation H if you have some.
You need to take him to the vet as he may have some type of parasite that is making it come out,get him there ASAP as if caught early he can be treated and live.