All the series had funny lines. My faves include:
From TOS, The Deadly Years, Spock asks McCoy to give him a remedy for his increasing intolerance to cold.
MCCOY: I'm not a magician, Spock, just an old country doctor.
SPOCK: Yes. As I've always suspected.
From TNG, All Good Things, when Picard solves the paradox Q puts him in:
Q: My ship, my crew, I'll bet you're worried about your fish, too!
When Picard insists on an answer, Q quips:
Q: Well, you're here aren't you? You're talking to me, aren't you?
From TNG, Haven, when Data is watching all the squabbling:
Data: Would you please continue the petty bickering? I find it intriguing.
From DSN, The Emissary, when Sisko maneuvers Quark into becoming community leader:
Quark: Hahahahaha! Community leader!
Odo: Seems reasonable. You have all the character references of a politician!
Those are some that haven't been mentioned that stand out in my mind.
Red Ranger