I had the same problem about 2 years ago. And this is going to sound TOTALLY insane but I swear it's true.
I went to the doctor, he said it was probably hemmorhoids but he sent me to a gastroenterologist. I had a colonoscopy and he says "well it could be colitis but it's definately not Chron's disease, here take this medicine" (which I forget what that was). Well that didn't fix it. So he took another colonoscopy and then I go in his office and he shows me this tiny little picture and says "you see that, I think it's chron's disease, here take this prednisone" Which I did, and gained like 25 pounds and it didn't fix it, so since I assumed he had no idea what was going on I quit going to him. After a couple of weeks it just went away by itself, and only seemed to start happening again on occasion. So I started paying attention to what I was eating/drinking around the time that it was happening. What causes it? Coca Cola. I know, it sounds incredibly stupid and doesn't make sense and I think Coke is the best soft drink in the world, but I've tested it 4 times to make sure. If I drink just 1 can of coke a day for 2-3 days it comes back. I haven't had a Coke in 2 years now and I haven't had the problem in 2 years. It doesn't happen with any other soft drink or food, so I don't know what the deal is.
The first thing I'd do is go see a doctor, but also try removing things from your diet, something different every couple of days and see if it clears up. If you drink a lot of coke, try that first.