Yarrrrrn.
The pirate responds, "tucked inside my buck'n hat!!"
Instead of 'knock knock', they say, 'Arrr you there!'