I found out about that in college. Initially I thought it was some cleaning compound in the dorm toilets. I found out later that someone had put methylene blue in brownies they brought to a gathering as a prank.
It wasn't that great of a prank because it relies on people talking about the color of their urine well after the prank was done.