Right side pain with rectal bleeding

Patient: For the past 3 days I have been having pain on the right side of my lower-middle back that comes and goes. I had taken ibuprofen thinking it might just be a pinched nerve or something inflammatory. But this morning I noticed rectal bleeding. Now I am getting really concerned about what the heck is wrong with me.