1. You know what

2. Guess what
3. By the way

(Are the three expressions the same in meaning and in usage in a sentence?)

No, not at all!

If you put question marks at the ends of the first and second, those will be pretty much the same, but the third is quite different in meaning and intent.