This is a play on words. The phrase "parting words" means the things you say as you are leaving but a "parting" in someone's hair is the line running from the front or back of their head. The punchline here is that "comb and brush" are "parting words" because those objects are used to part hair to one side.
Do you have any parting words ? - How about comb and brush ?