Meaning what the fuck (or wtf), except expressing more confusion than usual.
Person 1: "Remember that one thing we did that one time with that one dude?" Person 2: "The what fuck...?"