The print_letters command causes the test characters to be printed as they are sounded. print_letters should be placed after word selection and word filtering as shown below:
require "cw"
cw do
wpm 22
shuffle
word_count 4
print_letters()
end