This story’s only enduring scene has a Lonestar-type sketchy Han Solo knockoff protagonist forced while infiltrating a group of space pirates to perform a gang initiation style act of hazing to show his allegiance.
For whatever reason escapes me now, he boasts that he’ll get rid of his… ahem, “pistol” — and not the one in his holster, but below his belt — and manages to successfully execute the charade by faking up a prosthetic and then whac— ummm, ahem, “cutting” it off.
I’m not sure if it was an anthology short story or part of single novel-length story. I’m pretty sure I read it maybe in early 1990s but I don’t recall if it was new. Humor was this level of Ice Pirates sophomoric locker-room type of humor.