A man who hacked his friend to death with a machete told police afterwards his alleged victim had been in a "zombie-state" after taking an illicit drug.