I couldn't find a direct way to reach these settings, but go to Phone > ... (ellipsis menu, bottom right) > Blocked Calls > hamburger menu (top left) > Block List > tap '+' to add a number. It should block calls as well as messages.
Edit: if the '...' menu isn't visible, or doesn't show blocked calls, slide to 'call history' tab (left most).