You can do this by first putting your MacBook in sleep mode and then pressing Command+Shift+Power.